package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.common.annotation.AutoFill;
import com.ruoyi.common.enums.AutoFillType;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DispatchWaterQualityQualifiedRateTrendStatsMapper;
import com.ruoyi.system.domain.DispatchWaterQualityQualifiedRateTrendStats;
import com.ruoyi.system.service.IDispatchWaterQualityQualifiedRateTrendStatsService;

/**
 * 水质合格率趋势Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-02
 */
@Service
public class DispatchWaterQualityQualifiedRateTrendStatsServiceImpl implements IDispatchWaterQualityQualifiedRateTrendStatsService 
{
    @Autowired
    private DispatchWaterQualityQualifiedRateTrendStatsMapper dispatchWaterQualityQualifiedRateTrendStatsMapper;

    /**
     * 查询水质合格率趋势
     * 
     * @param waterQualityQualifiedRateTrendStatsId 水质合格率趋势主键
     * @return 水质合格率趋势
     */
    @Override
    public DispatchWaterQualityQualifiedRateTrendStats selectDispatchWaterQualityQualifiedRateTrendStatsByWaterQualityQualifiedRateTrendStatsId(Long waterQualityQualifiedRateTrendStatsId)
    {
        return dispatchWaterQualityQualifiedRateTrendStatsMapper.selectDispatchWaterQualityQualifiedRateTrendStatsByWaterQualityQualifiedRateTrendStatsId(waterQualityQualifiedRateTrendStatsId);
    }

    /**
     * 查询水质合格率趋势列表
     * 
     * @param dispatchWaterQualityQualifiedRateTrendStats 水质合格率趋势
     * @return 水质合格率趋势
     */
    @Override
    public List<DispatchWaterQualityQualifiedRateTrendStats> selectDispatchWaterQualityQualifiedRateTrendStatsList(DispatchWaterQualityQualifiedRateTrendStats dispatchWaterQualityQualifiedRateTrendStats)
    {
        return dispatchWaterQualityQualifiedRateTrendStatsMapper.selectDispatchWaterQualityQualifiedRateTrendStatsList(dispatchWaterQualityQualifiedRateTrendStats);
    }

    /**
     * 新增水质合格率趋势
     * 
     * @param dispatchWaterQualityQualifiedRateTrendStats 水质合格率趋势
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.INSERT)
    @Override
    public int insertDispatchWaterQualityQualifiedRateTrendStats(DispatchWaterQualityQualifiedRateTrendStats dispatchWaterQualityQualifiedRateTrendStats)
    {
        return dispatchWaterQualityQualifiedRateTrendStatsMapper.insertDispatchWaterQualityQualifiedRateTrendStats(dispatchWaterQualityQualifiedRateTrendStats);
    }

    /**
     * 修改水质合格率趋势
     * 
     * @param dispatchWaterQualityQualifiedRateTrendStats 水质合格率趋势
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.UPDATE)
    @Override
    public int updateDispatchWaterQualityQualifiedRateTrendStats(DispatchWaterQualityQualifiedRateTrendStats dispatchWaterQualityQualifiedRateTrendStats)
    {
        return dispatchWaterQualityQualifiedRateTrendStatsMapper.updateDispatchWaterQualityQualifiedRateTrendStats(dispatchWaterQualityQualifiedRateTrendStats);
    }

    /**
     * 批量删除水质合格率趋势
     * 
     * @param waterQualityQualifiedRateTrendStatsIds 需要删除的水质合格率趋势主键
     * @return 结果
     */
    @Override
    public int deleteDispatchWaterQualityQualifiedRateTrendStatsByWaterQualityQualifiedRateTrendStatsIds(Long[] waterQualityQualifiedRateTrendStatsIds)
    {
        return dispatchWaterQualityQualifiedRateTrendStatsMapper.deleteDispatchWaterQualityQualifiedRateTrendStatsByWaterQualityQualifiedRateTrendStatsIds(waterQualityQualifiedRateTrendStatsIds);
    }

    /**
     * 删除水质合格率趋势信息
     * 
     * @param waterQualityQualifiedRateTrendStatsId 水质合格率趋势主键
     * @return 结果
     */
    @Override
    public int deleteDispatchWaterQualityQualifiedRateTrendStatsByWaterQualityQualifiedRateTrendStatsId(Long waterQualityQualifiedRateTrendStatsId)
    {
        return dispatchWaterQualityQualifiedRateTrendStatsMapper.deleteDispatchWaterQualityQualifiedRateTrendStatsByWaterQualityQualifiedRateTrendStatsId(waterQualityQualifiedRateTrendStatsId);
    }
}
